std::set::swap

From Cppreference

Jump to: navigation, search
void swap( set& other );

Exchanges the contents of the container with those of other. All iterators and references remain valid.

Contents

Parameters

other - container to exchange the contents with

Return value

(none)

Complexity

linear in size of the container.

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages